#include"Heap.h"

void test1()
{
	HP hp;
	HPInit(&hp);
	int arr[] = { 55,666,5,9,151,654,11,55,33 };
	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		HPPush(&hp, arr[i]);//             
	}
	while (!HPEmpty(&hp))
	{ 
		int tmp = HPTop(&hp);
		printf("%d ", tmp);
		HPPop(&hp);
	}


	HPDestroy(&hp);

}

int main()
{

	test1();
	return 0;
}